package com.zoffy.catdiarybackend.service;

import com.zoffy.catdiarybackend.common.IdRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zoffy.catdiarybackend.model.entity.Friendship;
import com.zoffy.catdiarybackend.model.vo.FriendVo;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author 86170
* @description 针对表【friendship】的数据库操作Service
* @createDate 2024-07-16 17:54:14
*/
public interface FriendshipService extends IService<Friendship> {
    boolean addFriend(HttpServletRequest request, IdRequest idRequest);
    boolean checkFriend(long user1Id,long user2Id);
    boolean deleteFriend(HttpServletRequest request,IdRequest idRequest);
    List<FriendVo> selectFriend(HttpServletRequest request);
    List<FriendVo> selectFriendAddRequest(HttpServletRequest request);
    List<FriendVo> selectMyFriendAddRequest(HttpServletRequest request);
    boolean agreeFriendAddRequest(HttpServletRequest request,long userId);
    boolean disagreeFriendAddRequest(HttpServletRequest request,long userId);
}
